unit Unit23; 

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,
  Buttons;

type

  { TForm23 }

  TForm23 = class(TForm)
    Button1: TButton;
    ComboBox1: TComboBox;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
  private
    { private declarations }
  public
    estado : String;
  end; 

var
  Form23: TForm23; 

implementation

{ TForm23 }

procedure TForm23.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
  estado := ComboBox1.Text;
end;

procedure TForm23.Button1Click(Sender: TObject);
begin
  Close;
end;

initialization
  {$I unit23.lrs}

end.

